#!/bin/bash
gnuplot<<EOF
set term post enh
set out '$1.$2.eps'
set title 'Sentiment Plot'
set xdata time
set timefmt "%m/%d/%Y"
set format x "%b\n'%y"
set xtics "10/01/1998", 60*60*24*365.2425/4, "12/01/2002"
set size 1.5,1.5
set xlabel 'Time'
set ylabel 'Data'
set autoscale
set timefmt "%m/%d/%Y"
set key box
set key top left
plot '$1' using 1:$2 title 'Sentiment Timeline' with lines lc rgbcolor "blue"
EOF
if (($#==3))
then
		if (($3=='launch'))
		then
			gnome-open $1.$2.eps
		fi
fi
